package com.ht.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ht.entity.TablesEntity;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * @author ht
 * @email ht035200@163.com
 * @date 2021-09-23 23:02:31
 */
public interface TablesMapper extends BaseMapper<TablesEntity> {
    @Select("select * from information_schema.TABLES where table_schema = (select database()) and TABLE_NAME=#{tableName}")
    List<TablesEntity> selectMaps(String tableName);
}
